package com.java83.web;

import com.java83.service.AaaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

@Controller
@RequestMapping("asd")
public class SanCengCeShi {

    @Autowired(required = false)
    private AaaService aaaService;

    @RequestMapping("zxc")
    @ResponseBody
    public Map findOne(int id){
        Map one = aaaService.findOne(id);
        System.out.println(one);
        return one;
    }
}
